<?php

namespace App\Services;


use App\Models\WorkWechatUser;
use EasyWeChat\Factory;

class WorkWechatKfService
{
    /**
     * 企业微信 客服
     */

    private $corp_id = '';
    private $app = null;

    public function __construct()
    {
        $config = config('wechat.work.kf');
        $this->corp_id = $config['corp_id'];
        $this->contacts = Factory::work($config);
    }

    // 获取客服帐号列表
    public function getKfAccountList()
    {
        $res = $this->app->kf_account->list();
        dd($res);
    }

}
